Carbon


ProcessIsContextualMenuClient

Header: Menus.h Carbon status: Supported

Determines whether a given program is a contextual menu client.

Boolean ProcessIsContextualMenuClient (
    ProcessSerialNumber *inPSN
);
inPSN

A pointer to the ID of the process containing the program.

function result

true if the program in the process uses contextual menus; otherwise, false.

DISCUSSION

The ProcessIsContextualMenuClient function checks the system registry of contextual menu clients and returns true if the program in the given process supports contextual menus. However, the program must have been registered as a client using InitContextualMenus.

See also “Contextual Menu Gestalt Selector Constants”.

VERSION NOTES

This function is available with Appearance Manager 1.0 and later.

AVAILABILITY

Supported in Carbon. Available in CarbonLib 1.0 and later when ContextualMenu 1.0 or later is installed. Exported by CarbonLib 1.0 and later and by ContextualMenu 1.0 and later.


© 2000 Apple Computer, Inc. — (Last Updated 4/14/2000)